<template>
  <el-menu
     router
      style="height: 100%">
    <el-menu-item :index="item.menuPath" v-for="item in menuList">
      <span slot="title">{{ item.menuName }}  </span>
    </el-menu-item>
  </el-menu>
</template>

<script>
  export default {
    name: "Aside",
    data() {
      return {
        menuList:[]
      }
    },
    methods: {
      getMenu() {
        this.$axios.get('/menu/getMenu', this.menuList).then(res => {
          this.menuList = res.data.data
        });
      },
    },
    created() {
      this.getMenu()
    }
  }
</script>

<style scoped>

</style>